package com.wsj.neo4j.simple.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.neo4j.ogm.annotation.Id;
import org.neo4j.ogm.annotation.NodeEntity;

import java.io.Serializable;

/**
 * @author WangSongJun
 * @date 2019-10-28
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@NodeEntity(label = "Person")
public class Person implements Serializable {
    @Id
    private String phone;
    private String name;
}